package com.ruoyi.replay.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.replay.mapper.ReplyMapper;
import com.ruoyi.replay.domain.Reply;
import com.ruoyi.replay.service.IReplyService;

/**
 * 回复Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class ReplyServiceImpl implements IReplyService 
{
    @Autowired
    private ReplyMapper replyMapper;

    /**
     * 查询回复
     * 
     * @param id 回复主键
     * @return 回复
     */
    @Override
    public Reply selectReplyById(Integer id)
    {
        return replyMapper.selectReplyById(id);
    }

    /**
     * 查询回复列表
     * 
     * @param reply 回复
     * @return 回复
     */
    @Override
    public List<Reply> selectReplyList(Reply reply)
    {
        return replyMapper.selectReplyList(reply);
    }

    /**
     * 新增回复
     * 
     * @param reply 回复
     * @return 结果
     */
    @Override
    public int insertReply(Reply reply)
    {
        return replyMapper.insertReply(reply);
    }

    /**
     * 修改回复
     * 
     * @param reply 回复
     * @return 结果
     */
    @Override
    public int updateReply(Reply reply)
    {
        return replyMapper.updateReply(reply);
    }

    /**
     * 批量删除回复
     * 
     * @param ids 需要删除的回复主键
     * @return 结果
     */
    @Override
    public int deleteReplyByIds(Integer[] ids)
    {
        return replyMapper.deleteReplyByIds(ids);
    }

    /**
     * 删除回复信息
     * 
     * @param id 回复主键
     * @return 结果
     */
    @Override
    public int deleteReplyById(Integer id)
    {
        return replyMapper.deleteReplyById(id);
    }
}
